package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

@AVClassName("MLGiftRecord")
public class MLGiftRecord extends AVObject {
    public static final String USER = "user";
    public static final String RECEIVER = "receiver";
    public static final String GIFT = "gift";

    public MLGiftRecord() {
        // setTimeAdd(C.ORDER_TIMEADD_NO);
    }


    // //////////////////////////////////////////
    // 外键
    // //////////////////////////////////////////
    public MLUser getReceiver() {
        return (MLUser) super.getAVUser(RECEIVER);
    }

    public void setReceiver(MLUser user) {
        super.put(RECEIVER, user);
    }

    public MLUser getUser() {
        return (MLUser) super.getAVUser(USER);
    }

    public void setUser(MLUser user) {
        super.put(USER, user);
    }

    public MLGift getGift() {
        return (MLGift) super.getAVObject(GIFT);
    }

    public void setGift(MLGift gift) {
        super.put(GIFT, gift);
    }

}
